#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void test()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 6);
	SLTPushBack(&plist, 5);
	SLTPushBack(&plist, 4);
	SLTPushFront(&plist, 2);
	//SLTPopBack(&plist);
	//SLTPopFront(&plist);
	SLTNode* find = SLTFind(plist,5);
	SLTInsert(&plist, find, 7);
	SLTInsertAfter(&plist, find, 8);
	//SLTErase(&plist, find);
	SLTEraseAfter(&plist, find);
	SLTDestroy(&plist);
	//SLTPrint(plist);
}

int main()
{
	test();
}